# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-pyforgejo
pkgver=1.0.4
pkgrel=0
pkgdesc="A client library for accessing the Forgejo API"
url="https://codeberg.org/harabat/pyforgejo"
arch="noarch"
license="MIT"
depends="
	py3-httpx
	py3-attrs
	py3-dateutil
	"
makedepends="py3-gpep517 py3-poetry-core"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/p/pyforgejo/pyforgejo-$pkgver.tar.gz"
builddir="$srcdir/pyforgejo-$pkgver"
options="!check" # no tests

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
e5b581fb62af96704a249e5eab39ae6ba69794e813bc70b371ab7da408bb65ff58cc120ce9a0b44a41e3db5d300ee24cab786fb7f72d2319ae9db2deef22399e  py3-pyforgejo-1.0.4.tar.gz
"
